//package com.esd.controller;
//
//
//import java.util.HashMap;
//import java.util.List;
//import java.util.Map;
//import javax.annotation.Resource;
//import org.springframework.stereotype.Controller;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestMethod;
//import org.springframework.web.bind.annotation.ResponseBody;
//import org.springframework.web.servlet.ModelAndView;
//
//import com.esd.collection.Record;
//import com.esd.common.MongoDBUtil;
//import com.esd.config.BaseConfig;
//import com.esd.controller.site.SiteController;
//
//@Controller
//@RequestMapping("/record")
//public class RecordController {
//	@Resource
//	private MongoDBUtil mongoDBUtil;
//	
//	@RequestMapping(value = "/getRecord", method = RequestMethod.POST)
//	@ResponseBody
//	public Map<String, Object> getRecord() {
//		Map<String, Object> map = new HashMap<String, Object>();
//		Long totle = mongoDBUtil.getRecordsCount();
//		List<Record> crs = mongoDBUtil.findAll(Record.class,SiteController.siteId+"_"+BaseConfig.RECORD);
//		map.put("records", crs);
//		map.put("totle", totle);
//		return map;
//	}
//	@RequestMapping(value = "/recordJsp", method = RequestMethod.GET)
//	public ModelAndView recordJsp() {
//		
//		return new ModelAndView("record");
//	}
//}
